package com.ibuonline.b2b.product.dao;

import java.util.List;

import com.dimeng.common.base.SuperDAO;
import com.ibuonline.b2b.entity.ProdContact;

public class ProdContactDAO extends SuperDAO<ProdContact> {
	
	@SuppressWarnings("unchecked")
	public ProdContact getProdContactByProdId(long prodId){
		ProdContact pct = null;
		List<ProdContact> list = (List<ProdContact>)super.template.find("from ProdContact where prodId=?",prodId);
		if(list.size()>0){
			 pct = list.get(0);
			 //TODO
		}
		
		return pct;
	}
	
}
